// If you tried to use the generics with React.ComponentProps
// Then this is a working example for you
function myFunction<T extends React.ComponentType<any>>
(Component: T, props: React.ComponentProps<T> {
// implementation
}
// You must extend the T otherwise you will get this error you are searching on google right now